package vip.ifmm.lehouse.common.vo;

import lombok.ToString;
import vip.ifmm.lehouse.common.model.Commodity;
import vip.ifmm.lehouse.common.model.CommodityDetail;
import vip.ifmm.lehouse.common.model.CommodityImageLink;

import java.io.Serializable;
import java.util.List;

/**
 * 展示用的商品对象
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/06/22 17:30:49</p>
 */
@ToString
public class CommodityVo implements Serializable {

    private static final long serialVersionUID = -4734227136528764064L;

    private Commodity commodity = null;

    private CommodityDetail commodityDetail = null;

    private List<CommodityImageLink> images = null;

    public Commodity getCommodity() {
        return commodity;
    }

    public CommodityVo setCommodity(Commodity commodity) {
        this.commodity = commodity;
        return this;
    }

    public CommodityDetail getCommodityDetail() {
        return commodityDetail;
    }

    public CommodityVo setCommodityDetail(CommodityDetail commodityDetail) {
        this.commodityDetail = commodityDetail;
        return this;
    }

    public List<CommodityImageLink> getImages() {
        return images;
    }

    public CommodityVo setImages(List<CommodityImageLink> images) {
        this.images = images;
        return this;
    }
}
